package dao;

import java.util.List;

import pojo.UserProfile;

public interface UserDAO {
	public List<UserProfile> getAllUser();
	public UserProfile getUserProfile(String email);
	public UserProfile getUserProfile(int id);
	public String getLasName(String email);
	
	public boolean addUserProfile(UserProfile userProfile, boolean enable);
	public boolean addUserProfile(UserProfile userProfile, boolean enable, int roles);
	public boolean updateUserProfile(UserProfile userProfile, boolean enable, int roles);
	public boolean isAdmin(String email);
	public boolean deleteUserProfile(UserProfile userProfile);
	
	public boolean changePasswordUser(String email, String oldPass, String newPass);
	public boolean changeInfoUser(UserProfile userProfile);
}
